package Test_0727;

public class Test {
    public static void main(String[] args) {
        Animal animal1=new Dog(3,"小黄");
        if(animal1 instanceof Cat){
            System.out.println("引用了猫");
        }
        else{
            System.out.println("没有引用");
        }
    }
}
